#include "Card.h"

void InitCard(Card &card, int i, Kind k) {
	card.value = i;
	card.kind = k;
}

void ShowValue(const Card &card) {
	switch (card.value) {
	case(10) : std::cout << card.value << "  | ";
		break;
	case(11) : std::cout << 'J' << "   | ";
		break;
	case(12) : std::cout << 'Q' << "   | ";
		break;
	case(13) : std::cout << 'K' << "   | ";
		break;
	case(14) : std::cout << 'A' << "   | ";
		break;
	default: std::cout << card.value << "   | ";
	}
}

void ShowRow(const Card &card, int currentRow) {
	switch (currentRow) {
	case ROW_1:	std::cout << " _______  ";
		break;
	case ROW_2: std::cout << "| " << char(card.kind) << "     | ";
		break;
	case ROW_3: std::cout << "|       | ";
		break;
	case ROW_4: std::cout << "|   "; ShowValue(card);
		break;
	case ROW_5: std::cout << "|       | ";
		break;
	case ROW_6: std::cout << "|     " << char(card.kind) << " | ";
		break;
	default: std::cout << " \"\"\"\"\"\"\"  ";
		break;
	}
}